package com.ruoyi.kiku.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kiku.mapper.KikuFilmMapper;
import com.ruoyi.kiku.domain.KikuFilm;
import com.ruoyi.kiku.service.IKikuFilmService;

/**
 * 小鞠影视信息Service业务层处理
 * 
 * @author TT
 * @date 2025-03-13
 */
@Service
public class KikuFilmServiceImpl implements IKikuFilmService 
{
    @Autowired
    private KikuFilmMapper kikuFilmMapper;

    /**
     * 查询小鞠影视信息
     * 
     * @param id 小鞠影视信息主键
     * @return 小鞠影视信息
     */
    @Override
    public KikuFilm selectKikuFilmById(Long id)
    {
        return kikuFilmMapper.selectKikuFilmById(id);
    }

    /**
     * 查询小鞠影视信息列表
     * 
     * @param kikuFilm 小鞠影视信息
     * @return 小鞠影视信息
     */
    @Override
    public List<KikuFilm> selectKikuFilmList(KikuFilm kikuFilm)
    {
        return kikuFilmMapper.selectKikuFilmList(kikuFilm);
    }

    /**
     * 新增小鞠影视信息
     * 
     * @param kikuFilm 小鞠影视信息
     * @return 结果
     */
    @Override
    public int insertKikuFilm(KikuFilm kikuFilm)
    {
        kikuFilm.setCreateTime(DateUtils.getNowDate());
        return kikuFilmMapper.insertKikuFilm(kikuFilm);
    }

    /**
     * 修改小鞠影视信息
     * 
     * @param kikuFilm 小鞠影视信息
     * @return 结果
     */
    @Override
    public int updateKikuFilm(KikuFilm kikuFilm)
    {
        kikuFilm.setUpdateTime(DateUtils.getNowDate());
        return kikuFilmMapper.updateKikuFilm(kikuFilm);
    }

    /**
     * 批量删除小鞠影视信息
     * 
     * @param ids 需要删除的小鞠影视信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuFilmByIds(Long[] ids)
    {
        return kikuFilmMapper.deleteKikuFilmByIds(ids);
    }

    /**
     * 删除小鞠影视信息信息
     * 
     * @param id 小鞠影视信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuFilmById(Long id)
    {
        return kikuFilmMapper.deleteKikuFilmById(id);
    }
}
